package com.zhongxi.guoyuan.entity.pay;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/12/10.
 */

public class WeixinData {

    private String appid;
    private String partner;
    private String seller;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }

    @Override
    public String toString() {
        return "WeixinData{" +
                "appid='" + appid + '\'' +
                ", partner='" + partner + '\'' +
                ", seller='" + seller + '\'' +
                '}';
    }

    public static WeixinData parseObject(JSONObject object) {
        WeixinData weixinData = new WeixinData();
        weixinData.setAppid(object.optString("appid"));
        weixinData.setPartner(object.optString("partner"));
        weixinData.setSeller(object.optString("seller"));
        return weixinData;
    }
}
